﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace sy3_4_2_
{
    internal class Vehicle
    {
        protected int wheels;
        protected float weight;

        public void SetVehicle(int wheels, float weight)
        {
            this.wheels = wheels;
            this.weight = weight;
        }

        public virtual void GetVehicle()
        {
            MessageBox.Show($"车轮数: {wheels}\n车重量: {weight}");
        }
    }
}
